<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<style>
    .all_top{
        width:300px;
        height:100px;
        background-color: pink;
        margin-right:10px;
        display: inline-block;
        margin-top: 10px;
    }
    .fr{
        float: right;

    }
    .fl{
        float: left;
    }

</style>

<html>
<head>
    <title>Title</title>
</head>
<body>

    <c:forEach items="${result.rows}" var="item">
        <div class="all_top fl" >
            <div style="height: 60px;" class="">
                <img src="/static/images/1..jpg" style="height: 100px;width: 100px;border: 1px solid grey;"class="fl">
                <p style="padding-left: 10px" class="fl">${item.product.productName}</p>
            </div>
            <div class="">
                <span style="color: red">￥${item.costPrice}</span>
                <span style="margin-right:10px;" class="fr">库存：${item.number}</span>
            </div>

        </div>

    </c:forEach>


</body>
</html>
